package com.pdstudio.util;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

public class ViewUtil {

	/*
	 * 根据layoutId获取View
	 */
	public static View getView(Context context, int layoutId) {

		LayoutInflater inflater = (LayoutInflater) context
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

		View layout = inflater.inflate(layoutId, null);
		return layout;
	}

}
